#ifndef CANVAS_H
#define CANVAS_H

#include <QGraphicsScene>
#include <QGraphicsView>
#include <QMainWindow>
#include <QtOpenGL/QGLWidget>
#include <enginegl.h>
#include <engraphicsview.h>
#include <endrawthread.h>
#include <QSemaphore>
#include <lockedsemaphore.h>
#include <QApplication>

class Canvas
{

public:
    Canvas( QRect* r, LockedSemaphore* s, QApplication& a );
    ~Canvas();
    void setGeometry( int x, int y, int w, int h );
    EnGraphicsView* getView();

private:
    EnDrawThread* drawThread;

};

#endif // CANVAS_H
